﻿using ContactSMS.Commons.Util;

namespace ContactSMS.Domain.Entity
{
    public class MessageSession
    {
        public long Id { get; set; }
        public string Mobile { get; set; }
        public string? Desc { get; set; }
        public long? ContactId { get; set; }
        public long UserId { get; set; }
        public long SendTime { get; set; }
        public long CreatTime { get; set; }
        public long UpdateTime { get; set; }

        public MessageSession()
        {

        }

        public MessageSession(string Mobile, string? Desc, long? ContactId = 0, long userId = 0)
        {
            this.Mobile = Mobile;
            this.Desc = Desc;
            this.ContactId = ContactId;
            this.CreatTime = TimeUtil.GetTimestamp();
            this.UpdateTime = TimeUtil.GetTimestamp();
            UserId = userId;
        }
    }
}
